<template>
  <div>
    <div class="content mb-25">
      <el-form :model="queryParams" label-width="80px">
        <el-form-item label="年级">
          <el-select
            size="small"
            v-model="queryParams.grade"
            placeholder="请选择"
          >
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="班级">
          <el-select
            size="small"
            v-model="queryParams.grade"
            placeholder="请选择"
          >
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="姓名">
          <el-input style="width: 200px" size="small" v-model="queryParams.name"></el-input>
        </el-form-item>
        <el-form-item label="性别">
          <el-select
            size="small"
            v-model="queryParams.grade"
            placeholder="请选择"
          >
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
      </el-form>
    </div>
    <div class="dialog-foot">
      <el-button type="primary" @click="handleSave">确 定</el-button>
      <el-button type="primary" @click="handleCancel">取 消</el-button>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    rowData: {
      type: Object,
      require: true
    }
  },
  data () {
    return {
      queryParams: {}
    }
  },
  methods: {
    handleSave () {
      this.$message.success('添加成功')
      this.$emit('cancel')
    },
    handleCancel () {
      this.$emit('cancel')
    }
  }
}
</script>

<style lang='scss' scoped>
.dialog-foot {
  text-align: center;
}
.title {
  font-size: 18px;
  font-weight: 600;
}
</style>
